


module.exports = {
  // 获取时间搓的当月第一天 和当月最后一天 
  getMonthWeek(dates) {
    var date = new Date(Number(dates))
    const firstDay = new Date(date.setDate(1));
    let firstTime = firstDay.getTime(); //当月第一天
    const lastDay = new Date(new Date(date.getFullYear(), date.getMonth() + 1, 1).setDate(0))
    let lastTime = lastDay.getTime();//当月最后一天 
    return [firstTime, lastTime]
  },
}